SpatialStream® Code Examples

Thematic Mapping

This sample shows how our Parcel data can be Thematically Mapped to Table Loaded data. In this particular example, the Table Loaded data represent Mission Viejo properties and includes fields such as land use, property count, and average valuation.

Each shaded parcel represents some type of property (such as single family residential homes or multi family homes) in Mission Viejo. As you zoom in, the average valuation for that property is shown.

Thematic Mapper |Table Loader | GetMap


layer = new Dmp.Layer.WmsLayer("parcels", "SS");
layer.addChild("parcelLines", "samplesite.dmp/Parcels", "SAMPLESITE.public.styles.thematic/MV_LANDUSE.xml", {
attributeLinks: "MV_PROPERTYLINK", zoomRange: {
min: 16, max: 20
}
});
layer.addChild("avmLabels", "samplesite.dmp/Parcels", "SAMPLESITE.public.styles.thematic/AVMAVG_LABELS.xml", {
attributeLinks: "MV_PROPERTYLINK", zoomRange: {
min: 18, max: 20
}
});
layer.setMap(map);


Run Sample   Back To Index